package org.itydl.game.ext

import org.itydl.game.model.View

/*
    View接口的扩展包，减轻View的压力
 */

/**
 * View.checkCollication表示扩展View的方法为checkCollication(view: View)
 */
fun View.checCollection(view: View): Boolean {
    return checkCollection(x, y, width, height, view.x, view.y, view.width, view.height)
}